Optimal. Leaf size=80 \[ \frac{(A+B) (a \sin (e+f x)+a)^{m+1} \, _2F_1\left (1,m+1;m+2;\frac{1}{2} (\sin (e+f x)+1)\right )}{4 a f (m+1)}+\frac{(A-B) (a \sin (e+f x)+a)^m}{2 f m} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.105848, antiderivative size = 80, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {2836, 79, 68} \[ \frac{(A+B) (a \sin (e+f x)+a)^{m+1} \, _2F_1\left (1,m+1;m+2;\frac{1}{2} (\sin (e+f x)+1)\right )}{4 a f (m+1)}+\frac{(A-B) (a \sin (e+f x)+a)^m}{2 f m} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2836
Rule 79
Rule 68
Rubi steps
\begin{align*} \int \sec (e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx &=\frac{a \operatorname{Subst}\left (\int \frac{(a+x)^{-1+m} \left (A+\frac{B x}{a}\right )}{a-x} \, dx,x,a \sin (e+f x)\right )}{f}\\ &=\frac{(A-B) (a+a \sin (e+f x))^m}{2 f m}+\frac{(A+B) \operatorname{Subst}\left (\int \frac{(a+x)^m}{a-x} \, dx,x,a \sin (e+f x)\right )}{2 f}\\ &=\frac{(A-B) (a+a \sin (e+f x))^m}{2 f m}+\frac{(A+B) \, _2F_1\left (1,1+m;2+m;\frac{1}{2} (1+\sin (e+f x))\right ) (a+a \sin (e+f x))^{1+m}}{4 a f (1+m)}\\ \end{align*}
Mathematica [A] time = 0.111482, size = 71, normalized size = 0.89 \[ \frac{(a (\sin (e+f x)+1))^m \left (m (A+B) (\sin (e+f x)+1) \, _2F_1\left (1,m+1;m+2;\frac{1}{2} (\sin (e+f x)+1)\right )+2 (m+1) (A-B)\right )}{4 f m (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 1., size = 0, normalized size = 0. \begin{align*} \int \sec \left ( fx+e \right ) \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m} \left ( A+B\sin \left ( fx+e \right ) \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sin \left (f x + e\right ) + A\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \sec \left (f x + e\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (B \sec \left (f x + e\right ) \sin \left (f x + e\right ) + A \sec \left (f x + e\right )\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sin \left (f x + e\right ) + A\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \sec \left (f x + e\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]